home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus Special 25 / AMIGAplus Sonderheft 25 (2000)(Falke)(DE)(Track 1 of 4)[!].iso / PublicDomain / Spiele / Phalanx-XVIII / Makefile < prev    next >
Makefile  |  1998-11-08  |  1KB  |  46 lines

  1.  
  2. CC = gcc -I /gg/include -I /gg/os-include
  3.  
  4. ####### choose the line that makes the binary faster on your machine
  5. # CFLAGS = -O3 -Wall -fomit-frame-pointer -funroll-loops
  6. CFLAGS = -O4 -m68060 -m68881 -fomit-frame-pointer
  7.  
  8. ####### debug/tuning options for developers
  9. # CFLAGS = -O -Wall -g3 -static
  10. # CFLAGS = -O -Wall -pg
  11.  
  12. #######
  13. ### DEFINES
  14. ### -DSHOW_FORCED_MOVES
  15. ### -DPBOOK_FILE=\"pbook.phalanx\"
  16. ### -DSBOOK_FILE=\"sbook.phalanx\"
  17. ### -DLEARN_FILE=\"learn.phalanx\"
  18. ### -DPBOOK_DIR=\"/usr/local/lib\"
  19. ### -DSBOOK_DIR=\"/usr/local/lib\"
  20. ### -DLEARN_DIR=\"/var/local/lib\"
  21. ### -DQCAPSONLY
  22.  
  23. #DEFINES = -DGNUFUN
  24. LDFLAGS =
  25.  
  26. OBJ = .o/phalanx.o .o/bcreate.o .o/search.o .o/io.o .o/data.o \
  27.       .o/evaluate.o .o/genmoves.o .o/moving.o .o/hash.o .o/static.o \
  28.       .o/levels.o .o/book.o .o/killers.o .o/endgame.o .o/learn.o
  29.  
  30. phalanx: .o $(OBJ)
  31.     $(CC) $(CFLAGS) $(DEFINES) $(LDFLAGS) $(OBJ) -o phalanx
  32.  
  33. .o/%.o: makefile %.c
  34.     $(CC) $(CFLAGS) $(DEFINES) -c $*.c -o .o/$*.o
  35.  
  36. .o:
  37.     mkdir .o
  38.  
  39. clean:
  40.     rm -rf .o phalanx
  41.  
  42. backup:
  43.     tar -czvf Archive/phalanx.tgz \
  44.     makefile *.c *.h pbook.phalanx sbook.phalanx test.fin
  45.  
  46.